package com.peas.platform.module.icims.budget.archives.adapter.repository.po;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.peas.platform.common.core.annotation.Comment;
import com.peas.platform.framework.mybatisplus.po.BasePo;
import lombok.Data;
import lombok.EqualsAndHashCode;
import org.apache.ibatis.type.JdbcType;
import javax.validation.constraints.*;

// 热点分类
@Data
@EqualsAndHashCode(callSuper = false)
@TableName(value = "`tbl_budget_hot_catalog`")
public class BudgetHotCatalogPo extends BasePo {

    // 热点分类编码
    @Comment(value = "热点分类编码")
    @Size(max = 50, message = "热点分类编码不能超过50个字符")
    @TableField(value = "`hot_code`", jdbcType = JdbcType.VARCHAR)
    private String hotCode;

    // 热点分类名称
    @Comment(value = "热点分类名称")
    @Size(max = 200, message = "热点分类名称不能超过200个字符")
    @TableField(value = "`hot_name`", jdbcType = JdbcType.VARCHAR)
    private String hotName;

    // 状态
    // 1:有效，0:无效
    @Comment(value = "状态")
    @Size(max = 20, message = "状态不能超过20个字符")
    @TableField(value = "`state`", jdbcType = JdbcType.VARCHAR)
    private String state;

}
